# -- coding: utf-8 --
# @Time : 2021/3/14--20:38
# @Author : ChinaV
# @File : Turtle 绘图题：八边形.py
import turtle

turtle.pensize(2)
d = 0
for i in range(1, 9):
    turtle.fd(100)
    d += 360 / 8
    turtle.seth(d)
turtle.done()